package com.ruoyi.web.controller.warning;

import com.ruoyi.common.core.domain.R;
import com.ruoyi.warning.service.IWirelessSensorsManualService;
import io.swagger.annotations.ApiOperation;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * <p>
 * 手动添加的 前端控制器
 * </p>
 *
 * @author chenhc
 * @since 2025-07-08
 */
@RestController
@RequestMapping("/wirelessSensorsManual")
@Component("wirelessSensorsManual")
public class WirelessSensorsManualController {

    @Resource
    private IWirelessSensorsManualService wirelessSensorsManualService;



    @ApiOperation("更新ap数据")
    @GetMapping(value = "/refresh")
    public R refresh()
    {
        return R.ok(wirelessSensorsManualService.refresh());
    }

    @ApiOperation("Map更新ap数据")
    @GetMapping(value = "/refreshMap")
    public R refreshMap()
    {
        return R.ok(wirelessSensorsManualService.refreshMap());
    }
}
